#coding:utf-8
import md5

def get_gravatar(email):
    baseurl = 'http://www.gravatar.com/avatar/'
    m = md5.new()
    m.update(email.lower())
    emailhash = m.hexdigest()
    avatarurl = baseurl + emailhash + '?s=100&d=mm'
    return avatarurl